//== GAIA ============================================================================

//== BEGINNING OF CODE ===============================================================

#include "sagittarius/core/SagittariusCore.h"

#include "sagittarius/unicode/CUnicode.h"
#include "sagittarius/re/reCS.h"

#include <stdio.h>
#include <string.h>
#include <malloc.h>

int main(int argc, char* argv[])
{
    RE_CharSet* tmp;
    RE_CharSet* s;
    RE_CharSet* t;
    //RE_CharSet* u;
    
    
    s = re_createCSRange('A', 'P');
    printf("s: ");
    re_writeCS(1, s);
    printf("\n");
    
    t = re_createCSRange('M', 'Z');
    tmp = s;
    s = re_intersectRangeSet(s->ranges[0],t);
    free(tmp);
    printf("s ∩ ");
    re_writeCS(1, t);
    printf(" (range) = ");
    re_writeCS(1, s);
    printf("\n");
    
    free(s);
    free(t);
    //free(u);
    
    return 0;
}
